package com.xxgc.vfc.api.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

@Data
@ApiModel(value = "School对象VO", description = "学校")
public class SchoolUpdataVO implements Serializable {


    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Size(min = 1, max = 25,message = "学校名字长度为1-25")
    @ApiModelProperty("学校名称")
    private String schName;

    @Size(min = 1, max = 200, message = "简介长度为1-200")
    @ApiModelProperty("简介")
    private String schDesc;

    @NotNull(message = "学校等级不能为空")
    @ApiModelProperty("0是专科 1是1本 2是2本")
    private Integer levels;
}
